<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
{% include 'head.html' %}
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <b>CMDB</b><small>运维平台</small>
  </div>
  <!-- /.login-logo -->login.html
  <div class="login-box-body">
    <p class="login-box-msg">欢迎使用，请登录进行下一步</p>

    <form  method="post">
      {{ form.hidden_tag() }}
      <div class="form-group has-feedback">
        {% if form.username.errors %}
          <label class="text-red">{{ form.username.errors[0] }}</label>
        {% endif %}
        {{ form.username(class="form-control", placeholder="用户名") }}
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
          {{ form.password(class="form-control", placeholder="密码") }}
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      {% for message in get_flashed_messages() %}
      <div class="alert alert-error">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
          {{ message }}
      </div>
      {% endfor %}
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox">
            <label>
                {{ form.remember_me }} 记住此账号
{#              <input type="checkbox" name="remember_me"> 记住此账号#}
            </label>
          </div>
        </div>
        <!-- /.col -->
        <div class="col-xs-4">
            {{ form.submitField(class="btn btn-primary btn-block btn-flat") }}
        </div>
        <!-- /.col -->
      </div>
    </form>
    <!-- /.social-auth-links -->
  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

{#{% include 'foot.html' %}#}
</body>
</html>
